package com.yk.mapper;

import com.yk.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper

public interface UserMapper {
@Select("select * from user where username = #{username}")
    User findByUserName(String username);
@Insert("insert into user(username,password) values(#{username},#{password})")
    void register(String username, String password);
}
